package org.darkhelm.showsort.shared.message;

import org.darkhelm.showsort.client.ShowSort;

import no.eirikb.gwtchannelapi.client.Message;

@SuppressWarnings("serial")
public class MessageEvent implements Message {
	private String message;
	
	public MessageEvent() {
		
	}
	
	public MessageEvent(String message) {
		this.message = message;
	}
	
	public void execute(ShowSort showSort) {
		showSort.getChat().append(message);
	}
	
	public String toString() {
		return message;
	}
}
